std::localtime

From Cppreference

< cpp | chrono | c
Jump to: navigation, search
Defined in header <ctime>

struct tm *localtime( const time_t *time );

Converts given time since epoch as time_t value into calendar time, expressed in local time.

Contents

Parameters

time - pointer to a time_t object to convert

Return value

pointer to a static internal tm object on success, or NULL otherwise. The structure is shared between gmtime() and localtime() and is overwritten on each invocation.

Example

See also

gmtime
converts time since epoch to calendar time expressed as Universal Coordinated Time
(function)
Personal tools
Namespaces
Variants
Actions
Navigation
Toolbox
In other languages